<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="../../assets/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="../../assets/css/admin.css" />
	</head>

	<body>
		<div class="layui-fluid">
			<div class="layui-row">
				<div class="layui-col-md12">
					<blockquote class="layui-elem-quote" style="background-color: #fff">
						<label class="layui-form-label-seach">配置类型：</label>
						<div class="layui-input-inline">
							<input type="text" id="ConfigTypeName" autocomplete="off" placeholder="请输配置类型" class="layui-input">
						</div>
						<a href="javascript:;" class="layui-btn " id="search">
							<i class="layui-icon">&#xe615;</i> 搜索
						</a>
						<a href="javascript:;" class="layui-btn layui-btn-warm" id="add" style="float: right;margin-right: 20px;">
							<i class="layui-icon">&#xe608;</i> 添加配置信息
						</a>
					</blockquote>
				</div>
				<div class="layui-col-md12">
					<div class="layui-card">
						<div class="layui-card-header">配置列表</div>
						<div class="layui-card-body">
							<table class="layui-hide" id="example">
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="../../js/common/jquery-1.10.2.min.js"></script>
		<script type="text/javascript" src="../../assets/layui/layui.js"></script>
		<script type="text/javascript" src="../../js/common/table.js"></script>
		<script type="text/javascript" src="../../js/common/commonUtil.js"></script>
		<script>
		    layui.config({
				base: '../../assets/' //静态资源所在路径
			}).extend({
				index: 'lib/index' //主入口模块
			}).use(['index', 'form', 'table'], function() {
				var $ = layui.jquery,
					layer = layui.layer,
					table = layui.table;
				table.render({
					elem: '#example',
					url: 'assets/json/',
					page: { //支持传入 laypage 组件的所有参数（某些参数除外，如：jump/elem） - 详见文档
						layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
							//,curr: 5 //设定初始在第 5 页
							,
						groups: 1 //只显示 1 个连续页码
							,
						first: false //不显示首页
							,
						last: false //不显示尾页
			
					},
					cols: [
						[{
							field: 'id',
							width: 100,
							title: '配置类型code'
						}, {
							field: 'prodNamea',
							width: 120,
							title: '配置类型name',
							sort: true
						}, {
							field: 'api-key',
							width: 120,
							title: '配置code'
						}, {
							field: 'api-key',
							width: 120,
							title: '配置name'
						}
						, {
							field: 'api-key',
							width: 120,
							title: '配置value'
						},{
							field: 'coinId',
							width: 120,
							title: '创建时间',
							sort: true
						}, {
							field: 'basePrice',
							width: 120,
							title: '更新时间',
							sort: true
						}, {
							field: 'readyriseOpenPrice',
							width: 120,
							title: '操作'
						}]
					]
			
				});
				
				$("#add").on( 'click',  function (e) {
					 index = ComUtil.openLayerWin('信息编辑','config-edit.html',
							 {end:function(){
								 intPageTable()
							  }
					 });
				})
				$("#search").on( 'click',  function (e) {
					intPageTable()
				})
			});
		</script>
		</div>
	</body>
	
</html>